<?php

namespace app\controllers;

use app\components\Controller;
use app\logic\ConfigLogic;

/**
 * 配置
 * Class ConfigController
 * @package app\controllers
 */
class ConfigController extends Controller
{
    protected function verbs()
    {
        return [
            'update' => ['POST'],
            'view' => ['GET'],
        ];
    }

    public function actionView()
    {
        return ConfigLogic::view(getParams());
    }

    public function actionUpdate()
    {
        return ConfigLogic::update(getParams());
    }
}
